<template>
  <div
    id="mapContainer"
    :key="new Date().getTime()"
  ></div>
</template>

<script setup lang="ts">
import { initMap, removeAllLayers } from "./index.js";
import { getLayerManagerState } from "../mapbox_core/layer/layerManagerState";
import { onMounted } from "vue";
let map = null;
onMounted(() => {

  map = initMap("mapContainer");

    const layerManagerState = getLayerManagerState(map);
});
</script>

<style lang="scss" scoped>
#mapContainer {
  width: 100%;
  height: 100%;
  position: relative;

  .layerCme {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99;
  }

  h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--wmc-text-color);
  }
}

:deep(.mapboxgl-ctrl-logo) {
  display: none !important;
}
</style>
